<section class="sidebar">
    <form action="<?php echo admin_url('manageWallpapers') ?>" method="get" class="sidebar-form">
        <div class="input-group">
            <input type="text" name="q" class="form-control" placeholder="Search..."/>
                            <span class="input-group-btn">
                                <button type='submit' id='search-btn' class="btn btn-flat"><i
                                        class="fa fa-search"></i></button>
                            </span>
        </div>
    </form>
    <ul class="sidebar-menu">
        <li class="<?php echo active_url(config_item('admin_folder') . '/dashboard', 'active', TRUE); ?>">
            <a href="<?php echo admin_url('dashboard') ?>">
                <i class="fa fa-dashboard"></i> <span>后台首页</span>
            </a>
        </li>
        <li class="<?php echo active_url(config_item('admin_folder') . '/members', 'active', false); ?>">
            <a href="<?php echo admin_url('members') ?>">
                <i class="fa fa-users"></i> <span>用户管理</span>
            </a>
        </li>
        <li class="<?php echo active_url(config_item('admin_folder') . '/siteConfig', 'active', false); ?>">
            <a href="<?php echo admin_url('siteConfig') ?>">
                <i class="fa fa-gears"></i> <span>网站设置</span>
                <small class="badge pull-right bg-green">基本设置</small>

            </a>
        </li>
        <li class="<?php echo active_url(config_item('admin_folder') . '/manageCategory', 'active', false); ?>">
            <a href="<?php echo admin_url('manageCategory') ?>">
                <i class="glyphicon glyphicon-tree-deciduous"></i> <span>壁纸分类</span>
            </a>
        </li>

        <li class="treeview <?php echo active_url(config_item('admin_folder') . '/manageWallpapers', 'active', false); ?>">
            <a href="#">
                <i class="fa fa-camera"></i> <span>壁纸管理</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li class="<?php echo active_url(config_item('admin_folder') . '/manageWallpapers', 'active', false); ?>">
                    <a href="<?php echo admin_url('manageWallpapers') ?>">
                        <i class="fa fa-angle-double-right"></i> <span>所有壁纸</span>
                    </a>
                </li>
                <li class="<?php echo active_url(config_item('admin_folder') . '/manageWallpapers/add', 'active', false); ?>">
                    <a href="<?php echo admin_url('manageWallpapers/add') ?>">
                        <i class="fa fa-angle-double-right"></i> <span>上传壁纸</span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="treeview <?php echo active_url(config_item('admin_folder') . '/manageResolutions', 'active', false); ?>">
            <a href="#">
                <i class="fa fa-desktop"></i> <span>分辨率管理</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li class="<?php echo active_url(config_item('admin_folder') . '/manageResolutions', 'active', false); ?>">
                    <a href="<?php echo admin_url('manageResolutions') ?>">
                        <i class="fa fa-angle-double-right"></i> <span>所有分辨率</span>
                    </a>
                </li>
                <li class="<?php echo active_url(config_item('admin_folder') . '/manageResolutions/Group_list', 'active', false); ?>">
                    <a href="<?php echo admin_url('manageResolutions/Group_list') ?>">
                        <i class="fa fa-angle-double-right"></i> <span>分辨率分类</span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="<?php echo active_url(config_item('admin_folder') . '/clean_cache', 'active', false); ?>">
            <a href="<?php echo admin_url('clean_cache') ?>">
                <i class="fa fa-chain"></i> <span>清理缓存</span>
            </a>
        </li>
        <li class="<?php echo active_url(config_item('admin_folder') . '/manageAds', 'active', false); ?>">
            <a href="<?php echo admin_url('manageAds') ?>">
                <i class="fa fa-money"></i> <span>广告管理</span>
            </a>
        </li>
        <li class="<?php echo active_url(config_item('admin_folder') . '/sitetemplate', 'active', false); ?>">
            <a href="<?php echo admin_url('sitetemplate') ?>">
                <i class="fa fa-folder"></i> <span>模版管理</span>
            </a>
        </li>
    </ul>
</section>
